﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Zatify.Domain.Entities.Metadata
{
    public class UserMetadata
    {
        [Required(ErrorMessage = "User ID required")]
        public string Login { get; set; }

        [RegularExpression(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Please enter a valid e-mail adress")]
        //[Required(ErrorMessage = "Email required")]
        public string Email { get; set; }

        //[Required(ErrorMessage = "Phone required")]
        public string Phone { get; set; }

        //[Required(ErrorMessage = "Reg. State required")]
        public string RegState { get; set; }

        //[Required(ErrorMessage = "Reg. City required")]
        public string RegCity { get; set; }
    }
}
